﻿using System;
using Sample.Interfaces;

namespace Sample.Modules.ItemDetail.ViewModels
{
    public class ItemHeaderViewModel
    {
        public ItemHeaderViewModel(IBook item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }
            Title = item.Name;
        }

        public string Title { get; private set; }
    }
}
